{% assign productCode = include.productCode -%}
{"documents":[
{%- assign searchedpages = site.pages | where: "searchable", true | where: "product_code", productCode | where: "lang", page.lang %}
{%- for page in searchedpages %}
{%- if page.name == 'CR.md' or page.name == 'CR_RU.md' or page.name == 'CONFIGURATION.md' or page.name == 'CONFIGURATION_RU.md' or page.name == 'CLUSTER_CONFIGURATION.md' or page.name == 'CLUSTER_CONFIGURATION_RU.md' %}{% continue %}{% endif %}
{"title": "{{ page.title | escape }}",
"url": "/products/{{ page.url | remove_first: "/" | regex_replace: '^(ru/|en/)', '' }}",
"keywords": {{ page.search | jsonify }},
"content": {{ page.content | normalizeSearchContent | jsonify -}}
}
{%- unless forloop.last %},{% endunless %}
{%- endfor -%}
],"parameters":[]}
